home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 8718 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  699 b 

  1. Path: kuhub.cc.ukans.edu!anh
  2. From: anh@kuhub.cc.ukans.edu
  3. Newsgroups: comp.lang.c++
  4. Subject: inline feature or bug ?
  5. Message-ID: <1996Feb25.221651.114799@kuhub.cc.ukans.edu>
  6. Date: 25 Feb 96 22:16:51 CST
  7. Organization: University of Kansas Academic Computing Services
  8.  
  9. Hello,
  10.  
  11. I got a minor problem with inline functions a la gcc 2.7. I have my class
  12. declarations in a .h file. I declare my functions as inline. I have a .cc 
  13. file in which I implement the functions. I include inline at the function 
  14. definitions and g++ cannot link the stuff. The only solution I found was 
  15. to remove inline from BOTH the declaration and the definition of the 
  16. functions. Is this a 'feature' of GCC? Thank-you.
  17.  
  18. Anh
  19.  
  20.